<?php
require'connect.php';
date_default_timezone_set('PRC');
$today=date('Y-m-d');
$qqselect_sql="select * from user where end<'$today'";
$qqselect_result=mysql_query($qqselect_sql);
while($array=mysql_fetch_array($qqselect_result)){
$user=$array['user'];
$update_user="update user set vip='0',peie='0',qqnum='0'  where user='$user'";
$delete_qq="delete from qqlist where myqq='$user'";

if(mysql_query($update_user)&&mysql_query($delete_qq)){
echo '<div class="signup_container"><br>用户: '.$user.' 更新成功!</div>';
}else{
echo '<div class="signup_container"><br>用户: '.$user.' 更新失败!</div>';
}
}
echo '其他用户正常';
?>